<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>content</title>
    <style>
        #d1 {
            height: 150px;
            width: 150px;
            background: red;
            padding: 10px;
            margin: 20px;
            overflow: auto;
            /* overflow-x: hidden; */
            /* overflow-y: hidden; */
        }
    </style>
</head>

<body>
    <div id="d1">Lorem ipsum dolor sit, amet consectetur adipisicing elit. Cupiditate quibusdam atque perspiciatis
        numquam, ad pariatur praesentium at beatae accusamus iusto. Modi et nemo enim nesciunt minima deserunt, qui
        pariatur nisi.</div>
</body>

</html>